{script src="../scripts/imagebox/jquery-ui-personalized-1.6rc1.packed.js"}
{script src="../scripts/imagebox/jquery-imagebox.js"}

{style src="../styles/imagebox.css"}

<script type="text/javascript">
    var ENV = 'backend';
    var ImageBoxes = {$image_box};
    var tags = {$tags_image_box};
</script>

{php}
$this->assign('templates', array(
    'columns' => array(
        'file' => '<img src="../' . Kernel_Config::get('gallery', 'photo_thumbs_sorage') . '{$item.file}" class="ImageBoxClick" id="{$item.id}" />', 
        'tags_list' => '{if isset($tags[$item.id])}
			{foreach from=$tags[$item.id] item="tag" name="tags"}
			    <strong>{$tag.name|escape}</strong>{if not $smarty.foreach.tags.last}, {/if}
			{/foreach}
		    {/if}',
	'added_at' => '{$value}',
    ),
));
{/php}

<div id="photogallery">
    <input type="hidden" name="url" value="{$url}" />
    {include file="backend/component/list.tpl"}
</div>